<?php

namespace app\service;

use app\model\Percentage;
class PercentageService
{
    private $percentage;

    public function __construct(){
        $this->percentage = new Percentage;
    }

    public function getProportion($memberId,$taskId)
    {
        return $this->percentage->where('member_id',$memberId)->where('task_id',$taskId)->value('proportion');
    }
}
